import storeUtils from "utils/StoreUtils";

let locale = storeUtils.getStore("locale") || storeUtils.getSessionStore("locale");
let menus = storeUtils.getStore("menus") || storeUtils.getSessionStore("menus");

const state = {
	locale: locale,
	isCollapse: false,
	token: null,
	envMode: process.env.NODE_ENV,
	user: {
		userName: "", permission: 1
	},
	menus: menus || [],
	activeTabValue: "/dashboard",
	editableTabs: [
		{title: "dashboard", name: "/dashboard", icon: "el-icon-s-home", close: null}
	]
};
export let storeKeys = Object.keys(state);

export default state;
